projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77829cf
)
gdksurface-win32.c: Create all surfaces with CS_OWNDC
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 19 Jul 2021 02:44:48 +0000
(10:44 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 19 Jul 2021 09:36:54 +0000
(17:36 +0800)
We want to ensure that we have things set up properly for drag surfaces
as well.
gdk/win32/gdksurface-win32.c
patch
|
blob
|
history
diff --git
a/gdk/win32/gdksurface-win32.c
b/gdk/win32/gdksurface-win32.c
index bca73c6edb0b12fd9e5dfb6143fb713d843e927f..63c542a14a846b1e007fdab37d9c7cf681552d88 100644
(file)
--- a/
gdk/win32/gdksurface-win32.c
+++ b/
gdk/win32/gdksurface-win32.c
@@
-397,12
+397,13
@@
RegisterGdkClass (GdkSurfaceType wtype)
wcl.hbrBackground = NULL; \
wcl.hCursor = LoadCursor (NULL, IDC_ARROW);
+ /* MSDN: CS_OWNDC is needed for OpenGL contexts */
+ wcl.style |= CS_OWNDC;
+
switch (wtype)
{
case GDK_SURFACE_TOPLEVEL:
case GDK_SURFACE_POPUP:
- /* MSDN: CS_OWNDC is needed for OpenGL contexts */
- wcl.style |= CS_OWNDC;
if (0 == klassTOPLEVEL)
{
wcl.lpszClassName = L"gdkSurfaceToplevel";